//
//  JSInputView.h
//  JSBasicFramework
//
//  Created by Apple on 2019/1/17.
//  Copyright © 2019 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, JSInputViewAlignStyle) {
    JSInputViewAlignStyleTop,
    JSInputViewAlignStyleBottom
};

@interface JSInputView : UIView <QMUITextViewDelegate>


/*!
 leftView rightView
 
 如果有自定义视图 根据对齐方式 JSInputViewAlignStyle 确定q位置
 */
@property (nonatomic, strong, readonly) UIView *leftView;
@property (nonatomic, strong, readonly) UIView *rightView;
@property (nonatomic, assign) JSInputViewAlignStyle alignStyle;

@property (nonatomic, strong, readonly) QMUITextView *textView;
@property (nonatomic, assign) UIEdgeInsets contenInsets;
@property (nonatomic, assign) NSInteger maxLines;

-(void)settingLeftView:(UIView *) leftView alignStyle:(JSInputViewAlignStyle) alignStyle;
-(void)settingRightView:(UIView *) rightView alignStyle:(JSInputViewAlignStyle) alignStyle;

@end

NS_ASSUME_NONNULL_END
